$OpenBSD: patch-support_shobj-conf,v 1.2 2015/11/05 12:43:20 pirofti Exp $
--- support/shobj-conf.orig	Mon Feb 24 04:06:29 2014
+++ support/shobj-conf	Sat Oct 31 13:00:38 2015
@@ -212,7 +212,16 @@ darwin*)
 	SHLIB_LIBS='-lncurses'	# see if -lcurses works on MacOS X 10.1 
 	;;
 
-openbsd*|netbsd*|mirbsd*)
+openbsd*)
+	SHOBJ_CFLAGS=-fPIC
+	SHOBJ_LD='${CC}'
+	SHOBJ_LDFLAGS='-shared'
+
+	SHLIB_XLDFLAGS='-R$(libdir)'
+	SHLIB_LIBVERSION='$(SHLIB_LIBSUFF).$(RL_SHLIB_V)'
+	;;
+
+netbsd*|mirbsd*)
 	SHOBJ_CFLAGS=-fPIC
 	SHOBJ_LD='${CC}'
 	SHOBJ_LDFLAGS='-shared'
